<template>
  <div class="dashboard">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <div class="box">
      <div class="Box-left">
        <div class="head-left">
          <img src="../home/1212.png" alt="" class="head-left-top">
          <img src="../home/1213.png" alt="" class="head-right-bottom">
          <div class="head-left-text">
            <span class="text">运营人员（当天）</span>
            <div class="head-left-num">
              <div class="head-left-number">
                <p>0</p>
                <span>工单总数(个)</span>
              </div>
              <div class="head-left-number">
                <p>0</p>
                <span>完成工单(个)</span>
              </div>
              <div class="head-left-number">
                <p>0</p>
                <span>进行工单(个)</span>
              </div>
              <div class="head-left-number">
                <p>16</p>
                <span>运营人员数(个)</span>
              </div>
            </div>
          </div>
        </div>
        <div class="head-right">
          <img src="../home/1214.png" alt="" class="head-right-bottom2">
          <span class="text">运维人员（当天）</span>
          <div class="head-left-num">
            <div class="head-left-number">
              <p>0</p>
              <span>工单总数(个)</span>
            </div>
            <div class="head-left-number">
              <p>0</p>
              <span>完成工单(个)</span>
            </div>
            <div class="head-left-number">
              <p>0</p>
              <span>进行工单(个)</span>
            </div>
            <div class="head-left-number">
              <p>12</p>
              <span>运维人员数(个)</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="data-box">
      <div class="data-box-left">
        <div style="width: 35%;line-height:30px;font-weight:700">
          <span>工单状态</span>
        </div>
        <div style="width: 65%;">
          <el-date-picker v-model="value1" type="daterange" range-separator="至" start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
          <el-radio-group v-model="radio2">
            <el-radio-button label="周"></el-radio-button>
            <el-radio-button label="月"></el-radio-button>
            <el-radio-button label="年"></el-radio-button>
          </el-radio-group>
        </div>
        <img src="../home/1216.png" alt="" style="margin: 100px auto;">
      </div>
      <div class="data-box-right">1</div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: '',
  data() {
    return {
      radio2: '周',
      value1: ''
    }
  },
  computed: {
    // ...mapGetters([
    //   'name'
    // ])
  },
  mounted() {
  }
}
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}

.dashboard {
  // background-color: #f8fafd;

  .box {
    display: flex;

    .Box-left {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      margin-right: 2vw;

      .head-left {
        position: relative;
        width: 49%;
        background-color: #e9f3ff;
        height: 180px;
        border-radius: 20px;
        margin-right: 2%;
        padding: 25px;

        .head-left-top {
          position: absolute;
          top: 0;
          left: 0;
          border-top-left-radius: 20px;
          z-index: 0;
        }

        .head-right-bottom {
          position: absolute;
          bottom: 0;
          right: 0;
        }

        .text {
          font-size: 16px;
          font-weight: 700;
          margin-right: 10px;
        }

        .text-time {
          font-size: 12px;
          color: gray;
        }

        .head-left-num {
          display: flex;

          .head-left-number {
            width: 150px;
            margin-top: 30px;

            p {
              font-size: 40px;
              font-weight: 700;
              color: #072074;
              text-shadow: 3px 5px 5px #c2d5ff;
            }

            span {
              font-size: 14px;
              color: #759fee;
            }
          }
        }
      }

      .head-right {
        position: relative;
        width: 49%;
        background-color: #fbefe8;
        border-radius: 20px;
        padding: 25px;
        height: 180px;

        .head-right-bottom2 {
          position: absolute;
          bottom: 0;
          right: 25px;
          z-index: 0;
        }

        .text {
          font-size: 16px;
          font-weight: 700;
          margin-right: 10px;
        }

        .text-time {
          font-size: 12px;
          color: gray;
        }

        .head-left-num {
          display: flex;

          .head-left-number {
            width: 150px;
            z-index: 1;
            margin-top: 30px;

            p {
              font-size: 40px;
              font-weight: 700;
              color: #ff5757;
              text-shadow: 3px 3px 6px #f39191;
            }

            span {
              font-size: 14px;
              color: #f39191;
            }
          }
        }
      }
    }

  }
}

.data-box {
  display: flex;

  .data-box-left {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 70%;
    margin-top: 20px;
    margin-right: 2%;
    background-color: #fff;
    padding: 20px;
  }

  .data-box-right {
    width: 28%;
    margin-top: 20px;
  }
}
</style>
